﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace Model
{

    [DataContract]
    [MB.Orm.Mapping.Att.ModelMap("lmEstimateProduction", "lmEstimateProduction", new string[] { "GOODSCODE" })]
    [KnownType(typeof(ReceiveMaterial))]
    public class ReceiveMaterial : MB.Orm.Common.BaseModel
    {

        public ReceiveMaterial()
        {
        }

        private string _GOODSCODE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("GOODSCODE", System.Data.DbType.String)]
        public string GOODSCODE
        {
            get { return _GOODSCODE; }
            set { _GOODSCODE = value; }
        }

        private string _GOODSNAME;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("GOODSNAME", System.Data.DbType.String)]
        public string GOODSNAME
        {
            get { return _GOODSNAME; }
            set { _GOODSNAME = value; }
        }
        private string _UNITNAME;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("UNITNAME", System.Data.DbType.String)]
        public string UNITNAME
        {
            get { return _UNITNAME; }
            set { _UNITNAME = value; }
        }

        private string _PURUNITNAME;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("PURUNITNAME", System.Data.DbType.String)]
        public string PURUNITNAME
        {
            get { return _PURUNITNAME; }
            set { _PURUNITNAME = value; }
        }

        private string _GOODSSPEC;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("GOODSSPEC", System.Data.DbType.String)]
        public string GOODSSPEC
        {
            get { return _GOODSSPEC; }
            set { _GOODSSPEC = value; }
        }
        private string _LOOKUP;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("LOOKUP", System.Data.DbType.String)]
        public string LOOKUP
        {
            get { return _LOOKUP; }
            set { _LOOKUP = value; }
        }

        private decimal _SUMQTY;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("SUMQTY", System.Data.DbType.Decimal)]
        public decimal SUMQTY
        {
            get { return _SUMQTY; }
            set { _SUMQTY = value; }
        }

        private decimal _PURUNITQTY;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("PURUNITQTY", System.Data.DbType.Decimal)]
        public decimal PURUNITQTY
        {
            get { return _PURUNITQTY; }
            set { _PURUNITQTY = value; }
        }
        private string _RATIONDATE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("RATIONDATE", System.Data.DbType.String)]
        public string RATIONDATE
        {
            get { return _RATIONDATE; }
            set { _RATIONDATE = value; }
        }



    }
}
